package nl.ceasaro.jeslee.core.model.clothes;

import org.apache.commons.lang.builder.ToStringBuilder;
import nl.ceasaro.jeslee.core.model.AbstractEntity;
import nl.ceasaro.jeslee.core.model.clothes.size.ClothingSize;

import javax.persistence.Entity;

/**
 * Created by IntelliJ IDEA.
 * User: cees
 * Date: Dec 1, 2007
 * Time: 6:09:27 PM
 * <p>
 * Represents a bank transaction.
 * </p>
 */
@Entity
public class Dress extends AbstractEntity
{
   private static final long serialVersionUID = -9028167147292189464L;
   private ClothingSize clothingSize;
   
   private Design design;

   public Design getDesign()
   {
      return design;
   }

   public void setDesign(Design design)
   {
      this.design = design;
   }

   public ClothingSize getClothingSize()
   {
      return clothingSize;
   }

   public void setClothingSize(ClothingSize clothingSize)
   {
      this.clothingSize = clothingSize;
   }

   @Override
   public String toString()
   {
      ToStringBuilder toStringBuilder = new ToStringBuilder(this);
      toStringBuilder.append(getDesign());
      return toStringBuilder.toString();
   }

}
